let uu = document.querySelector("ul");
let comment = document.getElementsByClassName('comment')[0];
let u1 = window.location.search;

fetch("http://chst.vip:1234/api/getmoneyctrlproduct"+u1)
.then(body=>body.json()
.then(res =>{
    let html=""
    res.result.forEach(item=>{
        html=`
        <li>
            <div class="infoR">
                 <div class="title">
                    <h4>${item.productName}</h4>
                 </div>
                <div class="other">
                    <span class="mall fl">${item.productFrom} | ${item.productTime}</span>
                    <i>${item.productTips}</i>
                </div>
                <div class="container">
                    <p>
                        ${item.productImg2}
                        ${item.productInfo}
                    </p>
                </div>
                <div class="bigimg">
                ${item.productImg2}
                </div>
                <div class="city">
                    ${item.productCity}
                </div>
            </div>
        </li>
    
     `
    })
    uu.innerHTML = html;
}))
fetch("http://chst.vip:1234/api/getmoneyctrl")
.then(body => body.json()
.then(res =>{
    let html = ""
    res.result.forEach(item =>{
        html =`
        <section class="comment">
        ${item.productComment}
        </section>
        `
    })
    comment.innerHTML = html;
}))
